﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ListProject.aspx.cs" Inherits="lcs.Web.supply.ListProject" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
     <script type="text/javascript">
         function checksel() {
             if ($("#<%= GridView1.ClientID %> tr :checkbox:checked").length > 0)
                 return true;
             else
             { alert('没有选择任何行！'); return false; }

         }
    </script>
<style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td style=" height:15px;">
                <strong>项目列表</strong></td>
        </tr>
        <tr>
            <td style=" height:15px;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style=" height:15px;text-align:left;">
                项目名称：<a项目名称：<asp:TextBox ID="txt_select" runat="server" Width="280px"></asp:TextBox>&nbsp; <asp:Button ID="btn_select" runat="server" Text="查 询" OnClick="btn_select_Click" /> </td>
        </tr>
        <tr>
            <td style=" height:15px;">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None"
                    Width="100%" AllowPaging="True" 
                    onpageindexchanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                         <HeaderTemplate>
                          <input id="cbo_checkAll" type="checkbox" onclick="checkall(this)" />全选
                    </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbo_check" runat="server" />
                                <asp:Label ID="lbl_projectId" runat="server" Text='<%# Bind("projectId") %>' Visible="False"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="projectName" HeaderText="项目名称" />
                        <asp:BoundField DataField="proid" HeaderText="项目编号" />
                        <asp:BoundField DataField="beComplatedTime" HeaderText="预竣工日期" 
                            DataFormatString="{0:d}" />
                    </Columns>
                      <PagerStyle CssClass="mypager" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style=" height:15px;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style=" height:15px;">
                预竣工日期：<asp:TextBox ID="txt_isComplteTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
            &nbsp;<asp:Button ID="btn_setTime" runat="server" onclick="btn_setTime_Click" 
                    Text="设置" />
            </td>
        </tr>
        <tr>
            <td style=" height:15px;">
                &nbsp;</td>
        </tr>
        </table>
        
</asp:Content>
